Skip to content

feat(service-ai): open framework AI is query-only, declines app-building#1803

Merged
xuyushun441-sys merged 2 commits into
mainfrom
feat/open-framework-ai-query-only
Jun 13, 2026
Merged

feat(service-ai): open framework AI is query-only, declines app-building#1803
xuyushun441-sys merged 2 commits into
mainfrom
feat/open-framework-ai-query-only

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

问题

用户单独运行开源 framework(单环境运行时)时,_console/ai 的助手会把自己当成「开发助手」——给它发「帮我开发一个进销存」,它会输出整套系统设计方案、模块表、对象清单,表现得像在「开发应用」。但开源 framework 并不包含 AI 应用搭建能力(那是云端 service-ai-studio 插件提供的 metadata_authoring/solution_design skills 及其工具)。所以它只是在「演」开发——实际一个对象都建不出来,对开源用户是误导。

按产品边界:开源 framework 的 AI 只应支持数据查询,不应支持开发(开发是付费/云端能力)。

根因

ADR-0040 把助手统一成单一 data_chat persona,其 instructions 宣称「You can both ANSWER QUESTIONS ... and BUILD or CHANGE the application itself」。authoring 工具走的是「云端 AI Studio 插件挂载时才注册」的优雅降级——但只降级了工具,没降级人设。开源部署里工具不存在,LLM 仍照着「我能搭建」的人设侃侃而谈。

改动

buildSystemMessages:当本次激活的 skills 里没有 authoring(build-register)skill(metadata_authoring / solution_design)时,追加一段「本部署能力说明」——明确「应用搭建/开发不可用,你只能查询/聚合/搜索既有数据并执行应用已暴露的 action;用户要你搭建/开发应用时,不要设计、不要假装,简短说明本版本不提供 AI 应用搭建,转而帮其探索数据」。

  • 实际 skill 是否激活为开关:云端/EE 加载了 AI Studio → build-register 存在 → 完整搭建体验零改动;开源 framework → 自动收敛为查询专用。
  • 复用既有「条件式注入 system 指令」的范式(同 autoPublishAiBuilds)。
  • 新增两条测试覆盖「缺 / 有」authoring skill 两种情况。

测试

chatbot-features.test.ts 全绿(64/64,含新增 2 条)。service-ai 套件 256 个断言通过;2 个测试文件因新建 worktree 里 @objectstack/types/@objectstack/spec 尚未构建而无法 import(与本改动无关的构建顺序问题,CI 构建全图后即通过)。

🤖 Generated with Claude Code

os-zhuang and others added 2 commits June 13, 2026 06:41
test(e2e): lookup quick-filter coverage (CRM parity) (#1682)

objectui@76c38108544dd92abf965c0e07b0e4d92264708a
The unified `data_chat` persona (ADR-0040) advertises that it can BUILD or
CHANGE the application, but that capability is supplied entirely by the cloud
AI Studio plugin's `metadata_authoring`/`solution_design` skills and their
tools. On the open single-env framework those skills are not registered, so
the authoring tools never resolve — yet the LLM, still reading the "you can
build" persona, role-plays designing a whole system (emitting design docs it
has no tools to execute). Users saw the standalone open framework "develop"
a full 进销存 app that it could not actually create.

Fix: in buildSystemMessages, when no authoring (build-register) skill is
active, append a deployment-capability note constraining the assistant to
data/query and instructing it to decline build requests instead of pretending.
Keyed off actual skill presence, so cloud/EE (AI Studio loaded) keeps the full
build UX with zero extra wiring. Adds tests for both the absent and present
build-register cases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jun 13, 2026 1:53am

Request Review

@xuyushun441-sys
xuyushun441-sys merged commit 05717ed into main Jun 13, 2026
9 of 11 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the feat/open-framework-ai-query-only branch June 13, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants